package com.cq.hd.order.api.dto;

import com.cq.hd.common.enums.biz.PromotionTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class CreateOrderDto implements Serializable {

    private Long userId;

    @NotNull(message = "请选择下单的活动")
    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @NotNull(message = "请选择下单数量")
    @ApiModelProperty(value = "下单数量")
    private Integer orderNum;

    @ApiModelProperty(value = "红包id")
    private Long redPacketBillId;

    @ApiModelProperty(value = "活动分享码")
    private String code;

    @ApiModelProperty(value = "报名信息列表")
    private List<ActiveEnrollInfoSonDto> activeEnrollInfos;

    @ApiModelProperty(value = "积分商品id[积分兑换订单有用]")
    private Long pointsProductId;

    @ApiModelProperty(value = "拼团活动id")
    private Long groupBuyActiveId;

    @ApiModelProperty(value = "拼团订单id")
    private Long groupBuyOrderId;

    private PromotionTypeEnum promotionType;

    @ApiModelProperty(value = "推广奖励类型（0-无，1-佣金，2-其他权益，3-积分）")
    private Integer rewardType = 0;

}
